home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3dc.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_DC_H = 1;
- include("oops/r3root.js")
- include("oops/r3vector.js")
- include("oops/r3color.js")
-
-
- var R3CLID_DRAWCONTEXT = 267;
-
-
-
-
- // Description: Enable certain buffers for rendering. See ENABLEBUFFER flags below
- // Virtual method
-
- R3DCM_ENABLEBUFFERS = 267000;
-
- function mR3DCM_ENABLEBUFFERS() {
- DoA(this.r3obj, 267000, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Fetch drawing options. This method is provided only for backward compability. Please use the
- // attribute R3DCA_Options, to get and set these.
- // Virtual method
-
- R3DCM_GETOPTIONS = 267001;
-
- function mR3DCM_GETOPTIONS() {
- DoA(this.r3obj, 267001, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Unused
- // Virtual method
-
- R3DCM_BITSPERPIXEL = 267002;
-
- function mR3DCM_BITSPERPIXEL() {
- DoA(this.r3obj, 267002, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Clear canvas with given color.
- // Virtual method
- // p3: Integer, color index
-
- R3DCM_CLEAR = 267003;
-
- function mR3DCM_CLEAR(p3) {
- DoA(this.r3obj, 267003, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Copy backdrop image into the visible buffer.
-
- R3DCM_SHOWBACKDROP = 267004;
-
- function mR3DCM_SHOWBACKDROP() {
- DoA(this.r3obj, 267004, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Set current color
- // Virtual method
- // p3: r3Vect4, rgba values for the current color
-
- R3DCM_SETCOLORRGBA = 267005;
-
- function mR3DCM_SETCOLORRGBA(p3) {
- DoA(this.r3obj, 267005, p3, R3TID_COLOR_RGBA, 0);
- }
-
- // Description: Set current color by color index.
- // Virtual method
- // p3: Integer, index
-
- R3DCM_SETCOLORINDEX = 267006;
-
- function mR3DCM_SETCOLORINDEX(p3) {
- DoA(this.r3obj, 267006, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Set current rendering mode. See draw modes below.
- // Virtual method
- // p3: Integer, draw mode to be set
-
- R3DCM_SETDRAWMODE = 267007;
-
- function mR3DCM_SETDRAWMODE(p3) {
- DoA(this.r3obj, 267007, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Set current rendering pattern
- // Virtual method
- // p3: Integer, see drawing patterns below
-
- R3DCM_SETDRAWPATTERN = 267008;
-
- function mR3DCM_SETDRAWPATTERN(p3) {
- DoA(this.r3obj, 267008, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Render rectangle
- // Virtual method
-
- R3DCM_RECT = 267009;
-
- function mR3DCM_RECT() {
- DoA(this.r3obj, 267009, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Render filled rectangle
- // Virtual method
-
- R3DCM_RECTFILL = 267010;
-
- function mR3DCM_RECTFILL() {
- DoA(this.r3obj, 267010, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Render line consisting of two points
- // Virtual method
-
- R3DCM_LINE = 267011;
-
- function mR3DCM_LINE() {
- DoA(this.r3obj, 267011, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Not implemented yet
- // Virtual method
- // p3: String, string to be printed
-
- R3DCM_TEXT = 267012;
-
- function mR3DCM_TEXT(p3) {
- DoA(this.r3obj, 267012, p3, R3TID_STRING, 0);
- }
-
- // Description: Render given number of points
- // Virtual method
- // p1: Integer, number of points to be rendered
- // p2: r3Vect4, colors for points, if null, drawn with current color
-
- R3DCM_POINT = 267013;
-
- function mR3DCM_POINT(p1, p2) {
- DoA3(this.r3obj, 267013, p1, R3TID_INTEGER, 0, p2, R3TID_COLOR_RGBA, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Render polygon
- // Virtual method
- // p1: Integer, number of points in the polygon
-
- R3DCM_POLY = 267014;
-
- function mR3DCM_POLY(p1) {
- DoA2(this.r3obj, 267014, p1, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Render polygon
- // Virtual method
- // p1: Integer, number of points in the polygon
-
- R3DCM_POLYFILL = 267015;
-
- function mR3DCM_POLYFILL(p1) {
- DoA2(this.r3obj, 267015, p1, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Blit an image to the dc
- // Virtual method
- // p1: Integer, position for the left
- // p2: Integer, position for the top edge
- // p3: Object, image object to be blitted
-
- R3DCM_BLIT = 267016;
-
- function mR3DCM_BLIT(p1, p2, p3) {
- DoA3(this.r3obj, 267016, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Initialize DC for scanline rendering
- // Virtual method
- // p3: Integer, width of the line to be rendered
-
- R3DCM_SCANLINEBEGIN = 267017;
-
- function mR3DCM_SCANLINEBEGIN(p3) {
- DoA(this.r3obj, 267017, p3, R3TID_INTEGER, 0);
- }
-
- // Description: tell window that there will be no more scanlines.
- // Virtual method
-
- R3DCM_SCANLINEEND = 267018;
-
- function mR3DCM_SCANLINEEND() {
- DoA(this.r3obj, 267018, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Write one line of palette indexes into the draw context
- // Virtual method
- // p1: Integer, offset_x
- // p2: Integer, y coordinate
-
- R3DCM_SCANLINE8 = 267019;
-
- function mR3DCM_SCANLINE8(p1, p2) {
- DoA3(this.r3obj, 267019, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Write one line of true color values into the draw context
- // Virtual method
- // p1: Integer, offset_x
- // p2: Integer, y coordinate
-
- R3DCM_SCANLINE24 = 267020;
-
- function mR3DCM_SCANLINE24(p1, p2) {
- DoA3(this.r3obj, 267020, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Do swap buffers for double buffered draw context
- // Virtual method
-
- R3DCM_SWAPBUFFERS = 267021;
-
- function mR3DCM_SWAPBUFFERS() {
- DoA(this.r3obj, 267021, 0, R3TID_INTEGER, 0);
- }
-
- // Virtual method
-
- R3DCM_GETCOLORFORINDEX = 267023;
-
- function mR3DCM_GETCOLORFORINDEX() {
- DoA(this.r3obj, 267023, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Obsolete
-
- R3DCM_TRANSFORMATION = 267024;
-
- function mR3DCM_TRANSFORMATION() {
- DoA(this.r3obj, 267024, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Push screen transformation on transformation stack.
-
- R3DCM_PUSHSCREENTRANSFORMATI = 267025;
-
- function mR3DCM_PUSHSCREENTRANSFORMATI() {
- DoA(this.r3obj, 267025, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Fetch screen transformation off the stack.
-
- R3DCM_POPSCREENTRANSFORMATIO = 267026;
-
- function mR3DCM_POPSCREENTRANSFORMATIO() {
- DoA(this.r3obj, 267026, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Push given 4x4 matrix onto the stack
- // p3: r3Matrix
-
- R3DCM_PUSHMATRIX = 267027;
-
- function mR3DCM_PUSHMATRIX(p3) {
- DoA(this.r3obj, 267027, p3, R3TID_MATRIX, 0);
- }
-
- // Description: Fetch matrix off the stack
-
- R3DCM_POPMATRIX = 267028;
-
- function mR3DCM_POPMATRIX() {
- DoA(this.r3obj, 267028, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Render 3D polygon.
- // p1: Integer, number of points
- // p2: Boolean, closed if TRUE
- // p3: r3Vect, array of points defining polygon
-
- R3DCM_POLY3D = 267029;
-
- function mR3DCM_POLY3D(p1, p2, p3) {
- DoA3(this.r3obj, 267029, p1, R3TID_INTEGER, 0, p2, R3TID_BOOLEAN, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: Render given number of points.
- // p1: Integer, number of points to be renderer
- // p3: r3Vect, point array
-
- R3DCM_POINTS3D = 267030;
-
- function mR3DCM_POINTS3D(p1, p3) {
- DoA2(this.r3obj, 267030, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: Define 3D vertex for primitive defined by R3DCM_BEGIN3D.
- // p3: r3Vect, vertex to be defined.
-
- R3DCM_VERTEX3D = 267031;
-
- function mR3DCM_VERTEX3D(p3) {
- DoA(this.r3obj, 267031, p3, R3TID_VECTOR, 0);
- }
-
- // Description: Define surface normal for primitive to be renderer. See R3DCM_BEGIN3D method.
-
- R3DCM_NORMAL3D = 267032;
-
- function mR3DCM_NORMAL3D() {
- DoA(this.r3obj, 267032, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Begin definition of 3D geometry.
-
- R3DCM_BEGIN3D = 267033;
-
- function mR3DCM_BEGIN3D() {
- DoA(this.r3obj, 267033, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Ends definition of geometric object. See R3DCM_BEGIN3D,
-
- R3DCM_END3D = 267034;
-
- function mR3DCM_END3D() {
- DoA(this.r3obj, 267034, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Set shaded mode.
- // p3: Boolean, TRUE sets shaded mode, FALSE resets.
-
- R3DCM_SETSHADED = 267035;
-
- function mR3DCM_SETSHADED(p3) {
- DoA(this.r3obj, 267035, p3, R3TID_BOOLEAN, 0);
- }
-
- // Description: Define ambient light source. This has no geometry.
- // Returns: Boolean, TRUE if succeeded
- // p1: Number, intensity
- // p2: r3Vect4, color of the ambient light
-
- R3DCM_LIGHTAMBIENT = 267036;
-
- function mR3DCM_LIGHTAMBIENT(p1, p2) {
- return DoA3(this.r3obj, 267036, p1, R3TID_FLOAT, 0, p2, R3TID_COLOR_RGBA, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Define point light. See also R3DCM_LIGHTPOINTEXT
- // Returns: Boolean, TRUE if succeeded
- // p1: Number, intensity
- // p2: r3Vect4, color
- // p3: r3Vect, position
-
- R3DCM_LIGHTPOINT = 267037;
-
- function mR3DCM_LIGHTPOINT(p1, p2, p3) {
- return DoA3(this.r3obj, 267037, p1, R3TID_FLOAT, 0, p2, R3TID_COLOR_RGBA, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: Define distant light. See also R3DCM_LIGHTDISTANTEXT
- // Returns: Boolean, TRUE if succeeded
- // p1: Number, intensity
- // p2: r3Vect4, color
- // p3: r3Vect, direction
-
- R3DCM_LIGHTDISTANT = 267038;
-
- function mR3DCM_LIGHTDISTANT(p1, p2, p3) {
- return DoA3(this.r3obj, 267038, p1, R3TID_FLOAT, 0, p2, R3TID_COLOR_RGBA, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: Define spot light. See also R3DCM_LIGHTSPOTEXT
- // Returns: Boolean, TRUE if succeeded
- // p1: Number, intensity
- // p2: r3Vect4, color
-
- R3DCM_LIGHTSPOT = 267039;
-
- function mR3DCM_LIGHTSPOT(p1, p2) {
- return DoA3(this.r3obj, 267039, p1, R3TID_FLOAT, 0, p2, R3TID_COLOR_RGBA, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Define texture map
- // p1: Integer, width
- // p2: Integer, height
-
- R3DCM_RGBTEXTURE = 267040;
-
- function mR3DCM_RGBTEXTURE(p1, p2) {
- DoA3(this.r3obj, 267040, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Define color for vertex defined using R3DCM_VERTEX3D.
- // Virtual method
- // p3: r3Vect4, color for the vertex
-
- R3DCM_VERTEXCOLOR = 267041;
-
- function mR3DCM_VERTEXCOLOR(p3) {
- DoA(this.r3obj, 267041, p3, R3TID_COLOR_RGBA, 0);
- }
-
- // Description: Define specularity for vertex
- // Virtual method
- // p3: r3Vect4, specular color for the vertex
-
- R3DCM_VERTEXSPECULAR = 267042;
-
- function mR3DCM_VERTEXSPECULAR(p3) {
- DoA(this.r3obj, 267042, p3, R3TID_COLOR_RGBA, 0);
- }
-
- // Description: Define shininess for vertex
- // Virtual method
- // p3: Number, shininess
-
- R3DCM_VERTEXSHININESS = 267043;
-
- function mR3DCM_VERTEXSHININESS(p3) {
- DoA(this.r3obj, 267043, p3, R3TID_FLOAT, 0);
- }
-
- // Description: Define emission color for vertex
- // Virtual method
- // p3: r3Vect4, emission color for the vertex
-
- R3DCM_VERTEXEMISSION = 267044;
-
- function mR3DCM_VERTEXEMISSION(p3) {
- DoA(this.r3obj, 267044, p3, R3TID_COLOR_RGBA, 0);
- }
-
- // Description: Define U/V coordinates for the current vertex
- // Virtual method
-
- R3DCM_VERTEXTEXTURECOORD = 267045;
-
- function mR3DCM_VERTEXTEXTURECOORD() {
- DoA(this.r3obj, 267045, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Begin definition of display list
- // Virtual method
- // p3: Integer, identifier (name) for the display list
-
- R3DCM_NEWDISPLAYLIST = 267046;
-
- function mR3DCM_NEWDISPLAYLIST(p3) {
- DoA(this.r3obj, 267046, p3, R3TID_INTEGER, 0);
- }
-
- // Description: End definition of display list
- // Virtual method
-
- R3DCM_ENDDISPLAYLIST = 267047;
-
- function mR3DCM_ENDDISPLAYLIST() {
- DoA(this.r3obj, 267047, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Execute given display list.
- // Virtual method
- // p3: Integer, indentifier of the list to be called
-
- R3DCM_CALLDISPLAYLIST = 267048;
-
- function mR3DCM_CALLDISPLAYLIST(p3) {
- DoA(this.r3obj, 267048, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Delete given display list
- // Virtual method
- // p1: Integer, list to be deleted
- // p3: Integer, number of lists to be deleted.
-
- R3DCM_DELETEDISPLAYLISTS = 267049;
-
- function mR3DCM_DELETEDISPLAYLISTS(p1, p3) {
- DoA2(this.r3obj, 267049, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Create a continuous set of display lists
- // Virtual method
- // p3: Integer, range
-
- R3DCM_GENDISPLAYLISTS = 267050;
-
- function mR3DCM_GENDISPLAYLISTS(p3) {
- DoA(this.r3obj, 267050, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Test for display list existence.
- // Virtual method
- // Returns: Boolean, TRUE if exists.
- // p3: Integer, list to be tested
-
- R3DCM_ISDISPLAYLIST = 267051;
-
- function mR3DCM_ISDISPLAYLIST(p3) {
- return DoA(this.r3obj, 267051, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Disable lighiting if shaded mode is set
-
- R3DCM_DISABLELIGHTING = 267052;
-
- function mR3DCM_DISABLELIGHTING() {
- DoA(this.r3obj, 267052, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Enable lighiting again if shaded mode is set
-
- R3DCM_ENABLELIGHTING = 267053;
-
- function mR3DCM_ENABLELIGHTING() {
- DoA(this.r3obj, 267053, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Disable depth test if shaded mode is set
-
- R3DCM_DISABLEDEPTHTEST = 267054;
-
- function mR3DCM_DISABLEDEPTHTEST() {
- DoA(this.r3obj, 267054, 0, R3TID_INTEGER, 0);
- }
-
- // Description: enable depth test again if shaded mode is set
-
- R3DCM_ENABLEDEPTHTEST = 267055;
-
- function mR3DCM_ENABLEDEPTHTEST() {
- DoA(this.r3obj, 267055, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Push/pop given 4x4 matrix onto the stack
- // Virtual method
- // p3: r3Matrix
-
- R3DCM_POPTEXTUREMATRIX = 267057;
-
- function mR3DCM_POPTEXTUREMATRIX(p3) {
- DoA(this.r3obj, 267057, p3, R3TID_MATRIX, 0);
- }
-
- // Description: Use spherical mapping to define uv texture coordinates
- // Virtual method
-
- R3DCM_SPHEREMAP = 267058;
-
- function mR3DCM_SPHEREMAP() {
- DoA(this.r3obj, 267058, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Draw icon
- // p1: Integer, left coordinate
- // p2: Integer, top
- // p3: Object, icon object
-
- R3DCM_DRAWICON = 267059;
-
- function mR3DCM_DRAWICON(p1, p2, p3) {
- DoA3(this.r3obj, 267059, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Creates an image buffer for fast drawing
- // Virtual method
- // Returns: Object, image buffer
- // p1: Integer, width of the image
- // p2: Integer, height of the image
-
- R3DCM_PREPAREIMAGE = 267061;
-
- function mR3DCM_PREPAREIMAGE(p1, p2) {
- return DoA3(this.r3obj, 267061, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Draws an image prepared by the R3DCM_PREPAREIMAGE method
- // Virtual method
- // p1: Integer, position for the left edge
- // p2: Integer, position for the top edge
- // p3: Object, image to be blitted
-
- R3DCM_IMAGE = 267062;
-
- function mR3DCM_IMAGE(p1, p2, p3) {
- DoA3(this.r3obj, 267062, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Free resources allocated by the R3DCM_PREPAREIMAGE method
- // Virtual method
- // p3: Object, image buffer
-
- R3DCM_UNPREPAREIMAGE = 267063;
-
- function mR3DCM_UNPREPAREIMAGE(p3) {
- DoA(this.r3obj, 267063, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Backs up a rectangle. Either R3DCM_RESTORERECTANGLE or R3DCM_CANCELRECTANGLE * (but not both) must be called
- // to free resources allocated by this method.
- // Returns: Object, buffer containing the backed-up rectangle
-
- R3DCM_BACKUPRECTANGLE = 267064;
-
- function mR3DCM_BACKUPRECTANGLE() {
- return DoA(this.r3obj, 267064, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Restores the rectangle and frees resources allocated by the R3DCM_BACKUPRECTANGLE method
- // Returns: Integer, TRUE
- // p3: Object, buffer containing the backed-up rectangle
-
- R3DCM_RESTORERECTANGLE = 267065;
-
- function mR3DCM_RESTORERECTANGLE(p3) {
- return DoA(this.r3obj, 267065, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Frees resources allocated by the R3DCM_BACKUPRECTANGLE method but does not restore the rectangle onto
- // the canvas.
- // Virtual method
- // Returns: Integer, TRUE
- // p3: Object, buffer containing the backed-up rectangle
-
- R3DCM_CANCELRECTANGLE = 267066;
-
- function mR3DCM_CANCELRECTANGLE(p3) {
- return DoA(this.r3obj, 267066, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Return enabled buffer flags. See ENABLEBUFFER flags below
- // Virtual method
- // Returns: Integer, flags
-
- R3DCM_GETENABLEDBUFFERS = 267067;
-
- function mR3DCM_GETENABLEDBUFFERS() {
- return DoA(this.r3obj, 267067, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Get current rendering mode. See draw modes below.
- // Virtual method
- // Returns: Integer, draw mode
-
- R3DCM_GETDRAWMODE = 267068;
-
- function mR3DCM_GETDRAWMODE() {
- return DoA(this.r3obj, 267068, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Set line width
- // p3: Number, line width in pixels
-
- R3DCM_SETLINEWIDTH = 267069;
-
- function mR3DCM_SETLINEWIDTH(p3) {
- DoA(this.r3obj, 267069, p3, R3TID_FLOAT, 0);
- }
-
- // Description: Get current line width
- // p3: Number, line width
-
- R3DCM_GETLINEWIDTH = 267070;
-
- function mR3DCM_GETLINEWIDTH(p3) {
- DoA(this.r3obj, 267070, p3, R3TID_FLOAT, 0);
- }
-
- // Description: Begin motion blur rendering
- // p3: Integer, number of samples per frame
-
- R3DCM_BEGINMOTION = 267071;
-
- function mR3DCM_BEGINMOTION(p3) {
- DoA(this.r3obj, 267071, p3, R3TID_INTEGER, 0);
- }
-
-
- R3DCM_ENDMOTION = 267072;
-
- function mR3DCM_ENDMOTION() {
- DoA(this.r3obj, 267072, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Begin frame rendering. Subsequent swap buffers are taken as samples for the frame
- // p3: Integer, frame to be rendered
-
- R3DCM_BEGINFRAME = 267073;
-
- function mR3DCM_BEGINFRAME(p3) {
- DoA(this.r3obj, 267073, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Show motion blurred frame.
-
- R3DCM_ENDFRAME = 267074;
-
- function mR3DCM_ENDFRAME() {
- DoA(this.r3obj, 267074, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Begin sample
- // p3: Integer, sample to be rendered, must be between 0 ... samples/frame-1
-
- R3DCM_BEGINSAMPLE = 267075;
-
- function mR3DCM_BEGINSAMPLE(p3) {
- DoA(this.r3obj, 267075, p3, R3TID_INTEGER, 0);
- }
-
-
- R3DCM_ENDSAMPLE = 267076;
-
- function mR3DCM_ENDSAMPLE() {
- DoA(this.r3obj, 267076, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Draw icon
- // p1: r3Vect, position in obj space
- // p2: r3Vect, position in screen coordinates
- // p3: Object, icon object
-
- R3DCM_DRAWICON3D = 267080;
-
- function mR3DCM_DRAWICON3D(p1, p2, p3) {
- DoA3(this.r3obj, 267080, p1, R3TID_VECTOR, 0, p2, R3TID_VECTOR, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Define point light with extended atttributes
- // Virtual method
- // Returns: Boolean, TRUE if succeeded
- // p1: Number, intensity
- // p2: r3Vect4, color
-
- R3DCM_LIGHTPOINTEXT = 267081;
-
- function mR3DCM_LIGHTPOINTEXT(p1, p2) {
- return DoA3(this.r3obj, 267081, p1, R3TID_FLOAT, 0, p2, R3TID_COLOR_RGBA, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Define distant light with extended atttributes
- // Virtual method
- // Returns: Boolean, TRUE if succeeded
- // p1: Number, intensity
- // p2: r3Vect4, color
-
- R3DCM_LIGHTDISTANTEXT = 267082;
-
- function mR3DCM_LIGHTDISTANTEXT(p1, p2) {
- return DoA3(this.r3obj, 267082, p1, R3TID_FLOAT, 0, p2, R3TID_COLOR_RGBA, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Define spot light with extended atttributes
- // Virtual method
- // Returns: Boolean, TRUE if succeeded
- // p1: Number, intensity
- // p2: r3Vect4, color
-
- R3DCM_LIGHTSPOTEXT = 267083;
-
- function mR3DCM_LIGHTSPOTEXT(p1, p2) {
- return DoA3(this.r3obj, 267083, p1, R3TID_FLOAT, 0, p2, R3TID_COLOR_RGBA, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: queries whether a channel can be read from the canvas using * the R3DCM_READCHANNELROWBYTE
- // and R3DCM_READCHANNELROWFLOAT methods
- // Returns: Integer, TRUE if the specified channel can be read
- // p3: Integer, channel to query for (see canvas channels below)
-
- R3DCM_GETCHANNELREADINGOPTIO = 267084;
-
- function mR3DCM_GETCHANNELREADINGOPTIO(p3) {
- return DoA(this.r3obj, 267084, p3, R3TID_INTEGER, 0);
- }
-
- // Description: prepares to read the selected channel from the canvas.
- // Returns: Integer, void *, handle to be passed to R3DCM_READCHANNELROWBYTE, R3DCM_READCHANNELROWFLOAT * and R3DCM_BEGINREADCHANNEL methods. NULL if
- // the method fails.
- // p3: Integer, channel to read (see canvas channels below)
-
- R3DCM_BEGINREADCHANNEL = 267085;
-
- function mR3DCM_BEGINREADCHANNEL(p3) {
- return DoA(this.r3obj, 267085, p3, R3TID_INTEGER, 0);
- }
-
- // Description: frees resources allocated by R3DCM_BEGINREADCHANNEL method.
- // Returns: Integer, TRUE if successful
- // p3: Object, handle allocated by R3DCM_BEGINREADCHANNEL method.
-
- R3DCM_ENDREADCHANNEL = 267086;
-
- function mR3DCM_ENDREADCHANNEL(p3) {
- return DoA(this.r3obj, 267086, p3, R3TID_OBJECT, 0);
- }
-
- // Description: read a row of the selected channel from the canvas as bytes.
- // Returns: Integer, TRUE if successful
- // p1: Object, handle allocated by R3DCM_BEGINREADCHANNEL method.
- // p2: Integer, index of the row to read
- // p3: Object, buffer to read to
-
- R3DCM_READCHANNELROWBYTE = 267087;
-
- function mR3DCM_READCHANNELROWBYTE(p1, p2, p3) {
- return DoA3(this.r3obj, 267087, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: read a row of the selected channel from the canvas as R3FLOATs.
- // Returns: Integer, TRUE if successful
- // p1: Object, handle allocated by R3DCM_BEGINREADCHANNEL method.
- // p2: Integer, index of the row to read
- // p3: Object, buffer to read to
-
- R3DCM_READCHANNELROWFLOAT = 267088;
-
- function mR3DCM_READCHANNELROWFLOAT(p1, p2, p3) {
- return DoA3(this.r3obj, 267088, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Returns the owner thread object. Note: DC provides threads a port to rendering to
- // windows. Only the owner thread (the thread that created the dc) is allowed to render
- // to it.
- // Returns: Object, owner thread.
-
- R3DCM_GETOWNERTHREAD = 267091;
-
- function mR3DCM_GETOWNERTHREAD() {
- return R3ToJS( DoA(this.r3obj, 267091, 0, R3TID_INTEGER, 0));
- }
-
- // Description: Set current specular color
- // Virtual method
- // p3: r3Vect4, rgba
-
- R3DCM_SETSPECULARCOLORRGBA = 267092;
-
- function mR3DCM_SETSPECULARCOLORRGBA(p3) {
- DoA(this.r3obj, 267092, p3, R3TID_COLOR_RGBA, 0);
- }
-
- // Description: Draw a polygon through vertex index array
- // Virtual method
- // p1: r3Vect, vertices
- // p2: Integer, number of indices
- // p3: Integer[], array of vertex indices
-
- R3DCM_DRAWPOLYINDIRECT = 267093;
-
- function mR3DCM_DRAWPOLYINDIRECT(p1, p2, p3) {
- DoA3(this.r3obj, 267093, p1, R3TID_VECTOR, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, R3TNF_ARRAY);
- }
-
- // Description: Ask drawing context to restore the contents of the damaged window.
- // Virtual method
- // Returns: Boolean, FALSE if failed
-
- R3DCM_RESTOREFROMBACKUP = 267098;
-
- function mR3DCM_RESTOREFROMBACKUP() {
- return DoA(this.r3obj, 267098, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Sets whether clockwise or counterclockwise winding generates front-facing faces.
- // Virtual method
- // p3: Integer, either R3DCWINDING_CLOCKWISE or R3DCWINDING_COUNTERCLOCKWISE
-
- R3DCM_SETFRONTFACE = 267108;
-
- function mR3DCM_SETFRONTFACE(p3) {
- DoA(this.r3obj, 267108, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Draw an array of polygons through vertex index arrays
- // Virtual method
-
- R3DCM_DRAWFACEARRAY = 267111;
-
- function mR3DCM_DRAWFACEARRAY() {
- DoA(this.r3obj, 267111, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Set current emission color
- // Virtual method
- // p3: r3Vect4, rgba
-
- R3DCM_SETEMISSIONCOLORRGBA = 267112;
-
- function mR3DCM_SETEMISSIONCOLORRGBA(p3) {
- DoA(this.r3obj, 267112, p3, R3TID_COLOR_RGBA, 0);
- }
-
-
-
-
- R3DCA_Font = 267500;
- function SetR3DCA_Font(value) {
- R3Set(this.r3obj, R3DCA_Font, value, R3TID_OBJECT, 0);
- }
-
- R3DCA_Shaded = 267501;
- function SetR3DCA_Shaded(value) {
- R3Set(this.r3obj, R3DCA_Shaded, value, R3TID_BOOLEAN, 0);
- }
-
- R3DCA_CoordSys = 267502;
- function SetR3DCA_CoordSys(value) {
- R3Set(this.r3obj, R3DCA_CoordSys, value, R3TID_COORDSYS, 0);
- }
-
- R3DCA_Scale = 267503;
- function SetR3DCA_Scale(value) {
- R3Set(this.r3obj, R3DCA_Scale, value, R3TID_FLOAT, 0);
- }
-
- R3DCA_Width = 267504;
- function SetR3DCA_Width(value) {
- R3Set(this.r3obj, R3DCA_Width, value, R3TID_INTEGER, 0);
- }
-
- R3DCA_Height = 267505;
- function SetR3DCA_Height(value) {
- R3Set(this.r3obj, R3DCA_Height, value, R3TID_INTEGER, 0);
- }
-
- R3DCA_Perspective = 267506;
- function SetR3DCA_Perspective(value) {
- R3Set(this.r3obj, R3DCA_Perspective, value, R3TID_BOOLEAN, 0);
- }
-
- R3DCA_DoubleBuffer = 267508;
- function SetR3DCA_DoubleBuffer(value) {
- R3Set(this.r3obj, R3DCA_DoubleBuffer, value, R3TID_BOOLEAN, 0);
- }
-
- R3DCA_Overlay = 267509;
- function SetR3DCA_Overlay(value) {
- R3Set(this.r3obj, R3DCA_Overlay, value, R3TID_BOOLEAN, 0);
- }
-
- R3DCA_DoubleBufferOverlays = 267510;
- function SetR3DCA_DoubleBufferOverlays(value) {
- R3Set(this.r3obj, R3DCA_DoubleBufferOverlays, value, R3TID_BOOLEAN, 0);
- }
-
- R3DCA_BackDrop = 267511;
- function SetR3DCA_BackDrop(value) {
- R3Set(this.r3obj, R3DCA_BackDrop, value, R3TID_BOOLEAN, 0);
- }
-
- var R3DCA_Main = 267512; // Boolean
- R3DCA_BackUp = 267513;
- function SetR3DCA_BackUp(value) {
- R3Set(this.r3obj, R3DCA_BackUp, value, R3TID_BOOLEAN, 0);
- }
-
- var R3DCA_TrueColor = 267514; // Boolean
- R3DCA_ClipMinX = 267515;
- function SetR3DCA_ClipMinX(value) {
- R3Set(this.r3obj, R3DCA_ClipMinX, value, R3TID_INTEGER, 0);
- }
-
- R3DCA_Depth = 267519;
- function SetR3DCA_Depth(value) {
- R3Set(this.r3obj, R3DCA_Depth, value, R3TID_INTEGER, 0);
- }
-
- R3DCA_MinClipDist = 267523;
- function SetR3DCA_MinClipDist(value) {
- R3Set(this.r3obj, R3DCA_MinClipDist, value, R3TID_FLOAT, 0);
- }
-
- R3DCA_MaxClipDist = 267524;
- function SetR3DCA_MaxClipDist(value) {
- R3Set(this.r3obj, R3DCA_MaxClipDist, value, R3TID_FLOAT, 0);
- }
-
- R3DCA_GlobalAlpha = 267529;
- function SetR3DCA_GlobalAlpha(value) {
- R3Set(this.r3obj, R3DCA_GlobalAlpha, value, R3TID_FLOAT, 0);
- }
-
- function GetR3DCA_GlobalAlpha() {
- return R3Get(this.r3obj, R3DCA_GlobalAlpha, R3TID_FLOAT, 0);
- }
-
- R3DCA_NoVertPersp = 267533;
- function SetR3DCA_NoVertPersp(value) {
- R3Set(this.r3obj, R3DCA_NoVertPersp, value, R3TID_BOOLEAN, 0);
- }
-
- R3DCA_PixelAspect = 267534;
- function SetR3DCA_PixelAspect(value) {
- R3Set(this.r3obj, R3DCA_PixelAspect, value, R3TID_FLOAT, 0);
- }
-
- R3DCA_Master = 267535;
- function SetR3DCA_Master(value) {
- R3Set(this.r3obj, R3DCA_Master, value, R3TID_BOOLEAN, 0);
- }
-
- function GetR3DCA_Master() {
- return R3Get(this.r3obj, R3DCA_Master, R3TID_BOOLEAN, 0);
- }
-
- var R3RPF_DRAWFRONT = 1;
- var R3RPF_DRAWBACK = 2;
- var R3RPF_DRAWBACKDROP = 4;
- var R3PTRN_SOLID = 0;
- var R3PTRN_DASH = 1;
- var R3PTRN_DOT = 2;
- var RGM_NORMAL = 0;
- var RGM_COMPLEMENT = 1;
- var RGM_OVERLAY = 2;
- var RGM_OVERLAY2 = 3;
- var R3FALLOF_NONE = 0;
- var R3FALLOF_LINEAR = 1;
- var R3FALLOF_QUADRATIC = 2;
- var R3GA_OVERLAY = 1;
- var R3GA_DOUBLEBUFFER = 2;
- var R3GA_DRAW3D = 4;
- var R3GA_SINGLEBUFFER = 8;
- var R3GA_CLEARREMOVESCOMPLEMENT = 16;
- var R3GA_DISPLAYLISTS = 32;
- var R3GA_RESTORESCANLINE = 64;
- var R3GA_RESTOREALL = 128;
- var R3GA_SHADED = 256;
- var R3GA_SCANLINESB = 512;
- var R3GO_LINES = 0;
- var R3GO_LINE_LOOP = 1;
- var R3GO_POLYGON = 2;
- var R3GO_QUADS = 3;
- var R3GO_QUAD_STRIP = 4;
- var R3GO_TRIANGLE_STRIP = 5;
- var R3GO_TRIANGLE_FAN = 6;
- var R3GO_POINTS = 7;
- var R3CANVASCHANNEL_COLOR = 1;
- var R3CANVASCHANNEL_ALPHA = 2;
- var R3CANVASCHANNEL_DEPTH = 3;
- var R3DCWINDING_CLOCKWISE = 0;
- var R3DCWINDING_COUNTERCLOCKWISE = 1;
-
-
- function r3Drawcontext () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_DRAWCONTEXT, arguments);
- }
- // Methods
- this.ENABLEBUFFERS=mR3DCM_ENABLEBUFFERS;
- this.GETOPTIONS=mR3DCM_GETOPTIONS;
- this.BITSPERPIXEL=mR3DCM_BITSPERPIXEL;
- this.CLEAR=mR3DCM_CLEAR;
- this.SHOWBACKDROP=mR3DCM_SHOWBACKDROP;
- this.SETCOLORRGBA=mR3DCM_SETCOLORRGBA;
- this.SETCOLORINDEX=mR3DCM_SETCOLORINDEX;
- this.SETDRAWMODE=mR3DCM_SETDRAWMODE;
- this.SETDRAWPATTERN=mR3DCM_SETDRAWPATTERN;
- this.RECT=mR3DCM_RECT;
- this.RECTFILL=mR3DCM_RECTFILL;
- this.LINE=mR3DCM_LINE;
- this.TEXT=mR3DCM_TEXT;
- this.POINT=mR3DCM_POINT;
- this.POLY=mR3DCM_POLY;
- this.POLYFILL=mR3DCM_POLYFILL;
- this.BLIT=mR3DCM_BLIT;
- this.SCANLINEBEGIN=mR3DCM_SCANLINEBEGIN;
- this.SCANLINEEND=mR3DCM_SCANLINEEND;
- this.SCANLINE8=mR3DCM_SCANLINE8;
- this.SCANLINE24=mR3DCM_SCANLINE24;
- this.SWAPBUFFERS=mR3DCM_SWAPBUFFERS;
- this.GETCOLORFORINDEX=mR3DCM_GETCOLORFORINDEX;
- this.TRANSFORMATION=mR3DCM_TRANSFORMATION;
- this.PUSHSCREENTRANSFORMATI=mR3DCM_PUSHSCREENTRANSFORMATI;
- this.POPSCREENTRANSFORMATIO=mR3DCM_POPSCREENTRANSFORMATIO;
- this.PUSHMATRIX=mR3DCM_PUSHMATRIX;
- this.POPMATRIX=mR3DCM_POPMATRIX;
- this.POLY3D=mR3DCM_POLY3D;
- this.POINTS3D=mR3DCM_POINTS3D;
- this.VERTEX3D=mR3DCM_VERTEX3D;
- this.NORMAL3D=mR3DCM_NORMAL3D;
- this.BEGIN3D=mR3DCM_BEGIN3D;
- this.END3D=mR3DCM_END3D;
- this.SETSHADED=mR3DCM_SETSHADED;
- this.LIGHTAMBIENT=mR3DCM_LIGHTAMBIENT;
- this.LIGHTPOINT=mR3DCM_LIGHTPOINT;
- this.LIGHTDISTANT=mR3DCM_LIGHTDISTANT;
- this.LIGHTSPOT=mR3DCM_LIGHTSPOT;
- this.RGBTEXTURE=mR3DCM_RGBTEXTURE;
- this.VERTEXCOLOR=mR3DCM_VERTEXCOLOR;
- this.VERTEXSPECULAR=mR3DCM_VERTEXSPECULAR;
- this.VERTEXSHININESS=mR3DCM_VERTEXSHININESS;
- this.VERTEXEMISSION=mR3DCM_VERTEXEMISSION;
- this.VERTEXTEXTURECOORD=mR3DCM_VERTEXTEXTURECOORD;
- this.NEWDISPLAYLIST=mR3DCM_NEWDISPLAYLIST;
- this.ENDDISPLAYLIST=mR3DCM_ENDDISPLAYLIST;
- this.CALLDISPLAYLIST=mR3DCM_CALLDISPLAYLIST;
- this.DELETEDISPLAYLISTS=mR3DCM_DELETEDISPLAYLISTS;
- this.GENDISPLAYLISTS=mR3DCM_GENDISPLAYLISTS;
- this.ISDISPLAYLIST=mR3DCM_ISDISPLAYLIST;
- this.DISABLELIGHTING=mR3DCM_DISABLELIGHTING;
- this.ENABLELIGHTING=mR3DCM_ENABLELIGHTING;
- this.DISABLEDEPTHTEST=mR3DCM_DISABLEDEPTHTEST;
- this.ENABLEDEPTHTEST=mR3DCM_ENABLEDEPTHTEST;
- this.POPTEXTUREMATRIX=mR3DCM_POPTEXTUREMATRIX;
- this.SPHEREMAP=mR3DCM_SPHEREMAP;
- this.DRAWICON=mR3DCM_DRAWICON;
- this.PREPAREIMAGE=mR3DCM_PREPAREIMAGE;
- this.IMAGE=mR3DCM_IMAGE;
- this.UNPREPAREIMAGE=mR3DCM_UNPREPAREIMAGE;
- this.BACKUPRECTANGLE=mR3DCM_BACKUPRECTANGLE;
- this.RESTORERECTANGLE=mR3DCM_RESTORERECTANGLE;
- this.CANCELRECTANGLE=mR3DCM_CANCELRECTANGLE;
- this.GETENABLEDBUFFERS=mR3DCM_GETENABLEDBUFFERS;
- this.GETDRAWMODE=mR3DCM_GETDRAWMODE;
- this.SETLINEWIDTH=mR3DCM_SETLINEWIDTH;
- this.GETLINEWIDTH=mR3DCM_GETLINEWIDTH;
- this.BEGINMOTION=mR3DCM_BEGINMOTION;
- this.ENDMOTION=mR3DCM_ENDMOTION;
- this.BEGINFRAME=mR3DCM_BEGINFRAME;
- this.ENDFRAME=mR3DCM_ENDFRAME;
- this.BEGINSAMPLE=mR3DCM_BEGINSAMPLE;
- this.ENDSAMPLE=mR3DCM_ENDSAMPLE;
- this.DRAWICON3D=mR3DCM_DRAWICON3D;
- this.LIGHTPOINTEXT=mR3DCM_LIGHTPOINTEXT;
- this.LIGHTDISTANTEXT=mR3DCM_LIGHTDISTANTEXT;
- this.LIGHTSPOTEXT=mR3DCM_LIGHTSPOTEXT;
- this.GETCHANNELREADINGOPTIO=mR3DCM_GETCHANNELREADINGOPTIO;
- this.BEGINREADCHANNEL=mR3DCM_BEGINREADCHANNEL;
- this.ENDREADCHANNEL=mR3DCM_ENDREADCHANNEL;
- this.READCHANNELROWBYTE=mR3DCM_READCHANNELROWBYTE;
- this.READCHANNELROWFLOAT=mR3DCM_READCHANNELROWFLOAT;
- this.GETOWNERTHREAD=mR3DCM_GETOWNERTHREAD;
- this.SETSPECULARCOLORRGBA=mR3DCM_SETSPECULARCOLORRGBA;
- this.DRAWPOLYINDIRECT=mR3DCM_DRAWPOLYINDIRECT;
- this.RESTOREFROMBACKUP=mR3DCM_RESTOREFROMBACKUP;
- this.SETFRONTFACE=mR3DCM_SETFRONTFACE;
- this.DRAWFACEARRAY=mR3DCM_DRAWFACEARRAY;
- this.SETEMISSIONCOLORRGBA=mR3DCM_SETEMISSIONCOLORRGBA;
-
- // Attributes
- this.SetFont=SetR3DCA_Font;
- this.SetShaded=SetR3DCA_Shaded;
- this.SetCoordSys=SetR3DCA_CoordSys;
- this.SetScale=SetR3DCA_Scale;
- this.SetWidth=SetR3DCA_Width;
- this.SetHeight=SetR3DCA_Height;
- this.SetPerspective=SetR3DCA_Perspective;
- this.SetDoubleBuffer=SetR3DCA_DoubleBuffer;
- this.SetOverlay=SetR3DCA_Overlay;
- this.SetDoubleBufferOverlays=SetR3DCA_DoubleBufferOverlays;
- this.SetBackDrop=SetR3DCA_BackDrop;
- this.SetBackUp=SetR3DCA_BackUp;
- this.SetClipMinX=SetR3DCA_ClipMinX;
- this.SetDepth=SetR3DCA_Depth;
- this.SetMinClipDist=SetR3DCA_MinClipDist;
- this.SetMaxClipDist=SetR3DCA_MaxClipDist;
- this.GetGlobalAlpha=GetR3DCA_GlobalAlpha;
- this.SetGlobalAlpha=SetR3DCA_GlobalAlpha;
- this.SetNoVertPersp=SetR3DCA_NoVertPersp;
- this.SetPixelAspect=SetR3DCA_PixelAspect;
- this.GetMaster=GetR3DCA_Master;
- this.SetMaster=SetR3DCA_Master;
- }
-
- r3Drawcontext.prototype=new r3Root;
- // r3dc.h_H